<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ExpressTmall
 *
 * @ORM\Table(name="ue_express_tmall", uniqueConstraints={@ORM\UniqueConstraint(name="deliver_id", columns={"deliver_id"})}, indexes={@ORM\Index(name="express_id_idx", columns={"express_id"})})
 * @ORM\Entity
 */
class ExpressTmall
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="deliver_id", type="string", length=20, nullable=true)
     */
    private $deliverId;

    /**
     * @var string
     *
     * @ORM\Column(name="code", type="string", length=20, nullable=false)
     */
    private $code;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=30, nullable=false)
     */
    private $name;

    /**
     * @var \Express
     *
     * @ORM\ManyToOne(targetEntity="Express")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="express_id", referencedColumnName="id")
     * })
     */
    private $express;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set deliverId
     *
     * @param string $deliverId
     * @return ExpressTmall
     */
    public function setDeliverId($deliverId)
    {
        $this->deliverId = $deliverId;

        return $this;
    }

    /**
     * Get deliverId
     *
     * @return string 
     */
    public function getDeliverId()
    {
        return $this->deliverId;
    }

    /**
     * Set code
     *
     * @param string $code
     * @return ExpressTmall
     */
    public function setCode($code)
    {
        $this->code = $code;

        return $this;
    }

    /**
     * Get code
     *
     * @return string 
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return ExpressTmall
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set express
     *
     * @param \Ue\ErpBundle\Entity\Express $express
     * @return ExpressTmall
     */
    public function setExpress(\Ue\ErpBundle\Entity\Express $express = null)
    {
        $this->express = $express;

        return $this;
    }

    /**
     * Get express
     *
     * @return \Ue\ErpBundle\Entity\Express 
     */
    public function getExpress()
    {
        return $this->express;
    }
}
